package com.leyou.item.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.leyou.item.entity.Brand;
import org.apache.ibatis.annotations.Select;

import javax.websocket.server.PathParam;
import java.util.List;

public interface BrandMapper extends BaseMapper<Brand> {
    @Select("select * from tb_brand " +
            "where id in(select brand_id " +
            "from tb_category_brand " +
            "where category_id=#{id})")
    List<Brand> listBrandById(@PathParam("id") Long id);

}
